<div class="form-group col-md-12 {$form[type].extra_class|default=''}" id="form_group_{$form[type].name}">
  <label class="col-xs-12" for="{$form[type].name}">{$form[type].title}</label>
  <div class="form-controls">
    <div class="input-group" 
      data-provide="datepicker"
      data-today-highlight="true"
      data-autoclose="false"
      data-date-format="{if isset($form[type].format)}{$form[type].format}{else /}yyyy-mm-dd{/if}"
      {$form[type].extra_attr|default=''}>
      <div class="input-group-prepend">
        <span class="input-group-text">从</span>
      </div>
      <input type="text" class="form-control" id="start_{$form[type].name}" name="{$form[type].name}[]" value="{$form[type].value_from|default=''}" placeholder="{$form[type].format|default='yyyy-mm-dd'}">
      <div class="input-group-prepend input-group-append">
        <span class="input-group-text">至</span>
      </div>
      <input type="text" class="form-control" id="end_{$form[type].name}" name="{$form[type].name}[]" value="{$form[type].value_to|default=''}" placeholder="{$form[type].format|default='yyyy-mm-dd'}">
    </div>
    {notempty name="form[type].remark"}
    <small class="form-text text-muted">{$form[type].remark|raw|clear_js}</small>
    {/notempty}
  </div>
</div>
{assign name="useDatepicker" value="1" /}